package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;
import com.pocketsweet.C;

@AVClassName("MLFriendApply")
public class MLFriendApply extends AVObject {

	public static String STATUS = "status";// 好友申请状态
	public static String APPLIER = "applier";// 申请人
	public static String USER = "user";// 用户
	public static String REMARK = "remark";// 添加原因

	public MLFriendApply() {
		setStatus(C.FRIEND_APPLYS_WAITING);
	}

	// 申请状态
	public int getStatus() {
		return super.getInt(STATUS);
	}

	public void setStatus(int value) {
		super.put(STATUS, value);
	}

	// 用人户（外键1:1）
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}

	public void setUser(MLUser user) {
		super.put(USER, user);
	}

	// 发起人（外键1:1）
	public MLUser getApplier() {
		return (MLUser) super.getAVUser(APPLIER);
	}

	public void setApplier(MLUser user) {
		super.put(APPLIER, user);
	}

	public String getRemark() {
		return super.getString(REMARK);
	}

	public void setRemark(String value) {
		super.put(REMARK, value);
	}
}
